package com.jet.merchant.remote.office;

import com.jet.core.result.ResultJson;
import com.jet.merchant.remote.office.vo.IndustryAttrVo;
import com.jet.merchant.remote.office.vo.MerchantIndustryVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @author dcl
 * @since 2025/2/21 17:30
 */
@FeignClient(contextId = "officeRemote", value = "mammon-merchant", fallbackFactory = OfficeRemoteFallback.class)
public interface OfficeRemoteFeign {

    @GetMapping("/inner/office-edition/industry/info")
    ResultJson<MerchantIndustryVo> getMerchantIndustry(@RequestParam long merchantNo);

    @GetMapping("/inner/office-edition/industry/merchant-ability")
    ResultJson<List<IndustryAttrVo>> getMerchantAbility(@RequestParam long merchantNo);

    @PostMapping("/inner/office-edition/industry/trial")
    ResultJson<Void> industryTrial(@RequestParam long merchantNo,
                                   @RequestParam long storeNo,
                                   @RequestParam String accountId);
}
